home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
GETDISK.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
166 b
|
10 lines
/* getdisk.c --- p. 606 */
#include <stdio.h>
#include <dir.h>
main()
{
int drive;
drive = getdisk();
printf("The current drive is: %c\n", drive+'A');
}